/**
 * 
 */
package DBLayer;

import java.util.ArrayList;

import ModelLayer.*;

/**
 * @author Lindgren
 *
 */
public interface IFDBProduct {
	 // get all products
    public ArrayList<Product> getAllProducts(boolean retrieveAssociation);
    //get one Product having the ProductID
    public Product findProduct(int prodID, boolean retrieveAssociation);
    //find one Product having the name
    public Product searchProductName(String name, boolean retrieveAssociation);
    //find one Product having the description
    public Product searchProductDescription(String prodDescription, boolean retrieveAssociation);
   
    
    //insert a new clothing
    public int insertClothing(Clothing clo) throws Exception;
    //update information about a clothing  
    public int updateClothing(Clothing clo);
   
    //insert a new equipment
    public int insertEquipment(Equipment equ) throws Exception;
    //update information about an equipment 
    public int updateEquipment(Equipment equ);
    
    //insert a new gun
    public int insertGun(Gun gun) throws Exception;
    //update information about a gun 
    public int updateGun(Gun gun);
    
    
    //delete a product
    public int deleteProduct(int prodID);

}
